
class HomeModel {
  int errcode;
  _Data data;
  String message;

  HomeModel({this.errcode, this.data, this.message});

  HomeModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    data = json['data'] != null ? new _Data.fromJson(json['data']) : null;
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['message'] = this.message;
    return data;
  }
}

class _Data {
  List<DynamicStockList> dynamicStockList;

  _Data({this.dynamicStockList});

  _Data.fromJson(Map<String, dynamic> json) {
    if (json['dynamicStockList'] != null) {
      dynamicStockList = new List<DynamicStockList>();
      json['dynamicStockList'].forEach((v) {
        dynamicStockList.add(new DynamicStockList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.dynamicStockList != null) {
      data['dynamicStockList'] =
          this.dynamicStockList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class DynamicStockList {
  String statisticsTime;
  String carComsumeAmount;
  String dynamicStock;
  String carComsumePercent;
  String totalCarCount;
  String saasComProvince;
  String saasComDynamicStockId;
  String saasComId;
  String createTime;
  String totalComsumeAmount;
  String saasComName;
  String contributionDegree;
  String createUser;
  int id;
  String onAppCarPercent;
  String saasComCity;
  String onAppCarCount;
  String tHash;
  int sort;

  DynamicStockList(
      {this.statisticsTime,
      this.tHash,
      this.carComsumeAmount,
      this.dynamicStock,
      this.carComsumePercent,
      this.totalCarCount,
      this.saasComProvince,
      this.saasComDynamicStockId,
      this.saasComId,
      this.createTime,
      this.totalComsumeAmount,
      this.saasComName,
      this.contributionDegree,
      this.createUser,
      this.id,
      this.onAppCarPercent,
      this.saasComCity,
      this.onAppCarCount});

  DynamicStockList.fromJson(Map<String, dynamic> json) {
    statisticsTime = json['statisticsTime'];
    carComsumeAmount = json['carComsumeAmount'];
    dynamicStock = json['dynamicStock'];
    carComsumePercent = json['carComsumePercent'];
    totalCarCount = json['totalCarCount'];
    saasComProvince = json['saasComProvince'];
    saasComDynamicStockId = json['saasComDynamicStockId'];
    saasComId = json['saasComId'];
    createTime = json['createTime'];
    totalComsumeAmount = json['totalComsumeAmount'];
    saasComName = json['saasComName'];
    contributionDegree = json['contributionDegree'];
    createUser = json['createUser'];
    id = json['id'];
    onAppCarPercent = json['onAppCarPercent'];
    saasComCity = json['saasComCity'];
    onAppCarCount = json['onAppCarCount'];
    tHash = json['tHash'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['statisticsTime'] = this.statisticsTime;
    data['carComsumeAmount'] = this.carComsumeAmount;
    data['dynamicStock'] = this.dynamicStock;
    data['carComsumePercent'] = this.carComsumePercent;
    data['totalCarCount'] = this.totalCarCount;
    data['saasComProvince'] = this.saasComProvince;
    data['saasComDynamicStockId'] = this.saasComDynamicStockId;
    data['saasComId'] = this.saasComId;
    data['createTime'] = this.createTime;
    data['totalComsumeAmount'] = this.totalComsumeAmount;
    data['saasComName'] = this.saasComName;
    data['contributionDegree'] = this.contributionDegree;
    data['createUser'] = this.createUser;
    data['id'] = this.id;
    data['onAppCarPercent'] = this.onAppCarPercent;
    data['saasComCity'] = this.saasComCity;
    data['onAppCarCount'] = this.onAppCarCount;
    data['tHash'] = this.tHash;
    return data;
  }
}